/*
 * @Author: your name
 * @Date: 2021-11-17 09:59:30
 * @LastEditTime: 2022-10-24 11:10:15
 * @LastEditors: yan_hai_dong 891236760@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \app\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

import El from "./components/el"
import Vant from "./components/vant"
import Three from "./components/three"
import Canvas from "./components/canvas"
const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'Home',
    component: Home,
  },
  {
    path: "/userinfo",
    name: 'userinfo',
    component: () => import('@/views/el/userInfo'),
  },
  El,
  Vant,
  ...Three,
  ...Canvas
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router